package cn.itcast.service.Impl;

import cn.itcast.dao.Impl.studentDaoImpl;
import cn.itcast.dao.studentDao;
import cn.itcast.domain.Student;
import cn.itcast.service.studentService;

/**
 * @param
 * @return
 */
public class studentServiceImpl implements studentService {
    //创建持久层对象，复用
    studentDao dao=  new studentDaoImpl();
    @Override
    public boolean login(String username, String password) {
        //定义返回值
        boolean falg=false;
        falg= dao.login(username,password);
        return falg;
    }

    @Override
    public void add(Student student) {
        //定义回值，返回值没有,直接调用持久层方法
        dao.add(student);

    }
}
